﻿using Microsoft.Practices.ServiceLocation;
using MuddyBoots.GreenlightQC.DataService;
using MuddyBoots.GreenlightQC.DataService.Model;
using MuddyBoots.GreenlightQC.Mobile.Persistence;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MuddyBoots.GreenlightQC.Mobile.UI.ViewModel
{
    public class AssessmentHeaderViewModel : ViewModel
    {
        private AssessmentType assessmentType;

        public AssessmentHeaderViewModel()
        {
            var service = ServiceLocator.Current.GetInstance<IGreenlightQCMobile>();
            var database = ServiceLocator.Current.GetInstance<IDatabaseEntities>();

            this.assessmentType = service.GetAssessmentType(database, 17);
        }

        public IReadOnlyCollection<Question> AssessmentHeader
        {
            get
            {
                return this.assessmentType.HeaderQuestions;
            }
        }
    }
}
